home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3796 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.cencom.net!ns!tanp
  2. From: tanp@ns (Bill Wendling)
  3. Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
  4. Subject: Re: When should I close a file?
  5. Followup-To: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
  6. Date: 31 Jan 1996 07:11:59 GMT
  7. Organization: Cen-Com Internet
  8. Message-ID: <4en4nv$45k@news.cencom.net>
  9. References: <DLx4tF.Hs0@un.seqeb.gov.au>
  10. NNTP-Posting-Host: ns.cencom.net
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Anthony Lee inexplicably wrote:
  14. } I have a C program in ULTRIX and OSF.
  15.  
  16. } The program inputs lines of data representing coordinates of lightning
  17. } strikes.  The program records the data arrival time and translates
  18. } the coordinates (for plotting).  
  19.  
  20. } The datafile can remain open for days before a strike is recorded.
  21. } Or in a storm many strikes can arrive within a few seconds.
  22.  
  23. } My question is, if the program run continuously then how often
  24. } should I close the file as oppose to just saving it?
  25.  
  26. I know of no set standard of how long the file should remain open.  I
  27. guess that you don't want to close it because of the immediacy(sp?) of
  28. needing to record the data.  I would go with just saving it.
  29.  
  30. } voice:+61 7 3407 4541            Death to the Daleks!!!!
  31.  
  32. Right On! :)
  33.  
  34.  
  35. --
  36. Bill Wendling         | "Pinky, are you thinking what I'm thinking?"
  37. tanp@ns.cencom.net  | "I think so, Brain, but burlap chafes me so."
  38. "Boom Shanka"       | Finger me for my Geek Code...NOW!
  39.